package com.dhcc.DRGsHosp.core.domain;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;

/**
 * @title		:MrOperation.java
 * @description	:
 * @author		:lileizheng
 * @date		:2016年12月18日
 * @version     :1.0
 * @copyright   :DHCC 2013-2014 
 */
@Entity
@Table (name = "MR_OPERATION", schema = "DRGs")
public class MrOperation extends KoalaLegacyEntity {

	private static final long serialVersionUID = 1L;
	
	//主键
	@Id
	@Column(name = "ID")
	private String id;
	//主索引
	@Column(name = "PMAININDEX")
	private String pmainIndex;
	//类型编码
	@Column(name = "POTYPE")
	private String poType;
	//类型顺序号
	@Column(name = "POINDEX")
	private Integer poIndex;
	//手术及操作
	@Column(name = "PO0100")
	private String po0100;
	//手术及操作编码
	@Column(name = "PO0101")
	private String po0101;
	//手术及操作日期
	@Column(name = "PO0200")
	private Date po0200;
	//手术级别
	@Column(name = "PO0300")
	private String po0300;
	//手术级别编码
	@Column(name = "PO0301")
	private String po0301;
	//术者
	@Column(name = "PO0400")
	private String po0400;
	//术者编码
	@Column(name = "PO0401")
	private String po0401;
	//Ⅰ助
	@Column(name = "PO0500")
	private String po0500;
	//Ⅰ助编码
	@Column(name = "PO0501")
	private String po0501;
	//Ⅱ助
	@Column(name = "PO0600")
	private String po0600;
	//Ⅱ助编码
	@Column(name = "PO0601")
	private String po0601;
	//麻醉方式
	@Column(name = "PO0700")
	private String po0700;
	//麻醉方式编码
	@Column(name = "PO0701")
	private String po0701;
	//切口愈合
	@Column(name = "PO0800")
	private String po0800;
	//切口愈合编码
	@Column(name = "PO0801")
	private String po0801;
	//麻醉医师
	@Column(name = "PO0900")
	private String po0900;
	//麻醉医师编码
	@Column(name = "PO0901")
	private String po0901;
	//手术及操作部位
	@Column(name = "PO1000")
	private String po1000;
	//手术及操作部位编码
	@Column(name = "PO1001")
	private String po1001;
	//手术持续时间
	@Column(name = "PO1100")
	private Integer po1100;
	//麻醉分级/ASA评分
	@Column(name = "PO1200")
	private String po1200;
	//麻醉分级/ASA评分编码
	@Column(name = "PO1201")
	private String po1201;
	//手术患者类型
	@Column(name = "PO1300")
	private String po1300;
	//手术患者类型编码
	@Column(name = "PO1301")
	private String po1301;
	//是手术还是操作
	@Column(name = "PO1400")
	private String po1400;
	//手术及操作结束日期
	@Column(name = "PO1500")
	private Date po1500;
	//手术及操作结束时间
	@Column(name = "PO1501")
	private String po1501;
	//手术及操作开始时间
	@Column(name = "PO0201")
	private String po0201;
	

    
    /**  
     * @Title:  getPmainIndex <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPmainIndex() {
        return pmainIndex;
    }

    
    /**  
     * @Title:  setPmainIndex <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPmainIndex(String pmainIndex) {
        this.pmainIndex = pmainIndex;
    }

    
    /**  
     * @Title:  getPoType <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPoType() {
        return poType;
    }

    
    /**  
     * @Title:  setPoType <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPoType(String poType) {
        this.poType = poType;
    }

    
    /**  
     * @Title:  getPoIndex <BR>  
     * @Description: please write your description <BR>  
     * @return: Integer <BR>  
     */
    public Integer getPoIndex() {
        return poIndex;
    }

    
    /**  
     * @Title:  setPoIndex <BR>  
     * @Description: please write your description <BR>  
     * @return: Integer <BR>  
     */
    public void setPoIndex(Integer poIndex) {
        this.poIndex = poIndex;
    }

    
    /**  
     * @Title:  getPo0100 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0100() {
        return po0100;
    }

    
    /**  
     * @Title:  setPo0100 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0100(String po0100) {
        this.po0100 = po0100;
    }

    
    /**  
     * @Title:  getPo0101 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0101() {
        return po0101;
    }

    
    /**  
     * @Title:  setPo0101 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0101(String po0101) {
        this.po0101 = po0101;
    }

    
    /**  
     * @Title:  getPo0200 <BR>  
     * @Description: please write your description <BR>  
     * @return: Date <BR>  
     */
    public Date getPo0200() {
        return po0200;
    }

    
    /**  
     * @Title:  setPo0200 <BR>  
     * @Description: please write your description <BR>  
     * @return: Date <BR>  
     */
    public void setPo0200(Date po0200) {
        this.po0200 = po0200;
    }

    
    /**  
     * @Title:  getPo0300 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0300() {
        return po0300;
    }

    
    /**  
     * @Title:  setPo0300 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0300(String po0300) {
        this.po0300 = po0300;
    }

    
    /**  
     * @Title:  getPo0301 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0301() {
        return po0301;
    }

    
    /**  
     * @Title:  setPo0301 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0301(String po0301) {
        this.po0301 = po0301;
    }

    
    /**  
     * @Title:  getPo0400 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0400() {
        return po0400;
    }

    
    /**  
     * @Title:  setPo0400 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0400(String po0400) {
        this.po0400 = po0400;
    }

    
    /**  
     * @Title:  getPo0401 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0401() {
        return po0401;
    }

    
    /**  
     * @Title:  setPo0401 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0401(String po0401) {
        this.po0401 = po0401;
    }

    
    /**  
     * @Title:  getPo0500 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0500() {
        return po0500;
    }

    
    /**  
     * @Title:  setPo0500 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0500(String po0500) {
        this.po0500 = po0500;
    }

    
    /**  
     * @Title:  getPo0501 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0501() {
        return po0501;
    }

    
    /**  
     * @Title:  setPo0501 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0501(String po0501) {
        this.po0501 = po0501;
    }

    
    /**  
     * @Title:  getPo0600 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0600() {
        return po0600;
    }

    
    /**  
     * @Title:  setPo0600 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0600(String po0600) {
        this.po0600 = po0600;
    }

    
    /**  
     * @Title:  getPo0601 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0601() {
        return po0601;
    }

    
    /**  
     * @Title:  setPo0601 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0601(String po0601) {
        this.po0601 = po0601;
    }

    
    /**  
     * @Title:  getPo0700 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0700() {
        return po0700;
    }

    
    /**  
     * @Title:  setPo0700 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0700(String po0700) {
        this.po0700 = po0700;
    }

    
    /**  
     * @Title:  getPo0701 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0701() {
        return po0701;
    }

    
    /**  
     * @Title:  setPo0701 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0701(String po0701) {
        this.po0701 = po0701;
    }

    
    /**  
     * @Title:  getPo0800 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0800() {
        return po0800;
    }

    
    /**  
     * @Title:  setPo0800 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0800(String po0800) {
        this.po0800 = po0800;
    }

    
    /**  
     * @Title:  getPo0801 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0801() {
        return po0801;
    }

    
    /**  
     * @Title:  setPo0801 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0801(String po0801) {
        this.po0801 = po0801;
    }

    
    /**  
     * @Title:  getPo0900 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0900() {
        return po0900;
    }

    
    /**  
     * @Title:  setPo0900 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0900(String po0900) {
        this.po0900 = po0900;
    }

    
    /**  
     * @Title:  getPo0901 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0901() {
        return po0901;
    }

    
    /**  
     * @Title:  setPo0901 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0901(String po0901) {
        this.po0901 = po0901;
    }

    
    /**  
     * @Title:  getPo1000 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo1000() {
        return po1000;
    }

    
    /**  
     * @Title:  setPo1000 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo1000(String po1000) {
        this.po1000 = po1000;
    }

    
    /**  
     * @Title:  getPo1001 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo1001() {
        return po1001;
    }

    
    /**  
     * @Title:  setPo1001 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo1001(String po1001) {
        this.po1001 = po1001;
    }

    
    /**  
     * @Title:  getPo1100 <BR>  
     * @Description: please write your description <BR>  
     * @return: Integer <BR>  
     */
    public Integer getPo1100() {
        return po1100;
    }

    
    /**  
     * @Title:  setPo1100 <BR>  
     * @Description: please write your description <BR>  
     * @return: Integer <BR>  
     */
    public void setPo1100(Integer po1100) {
        this.po1100 = po1100;
    }

    
    /**  
     * @Title:  getPo1200 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo1200() {
        return po1200;
    }

    
    /**  
     * @Title:  setPo1200 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo1200(String po1200) {
        this.po1200 = po1200;
    }

    
    /**  
     * @Title:  getPo1201 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo1201() {
        return po1201;
    }

    
    /**  
     * @Title:  setPo1201 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo1201(String po1201) {
        this.po1201 = po1201;
    }

    
    /**  
     * @Title:  getPo1300 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo1300() {
        return po1300;
    }

    
    /**  
     * @Title:  setPo1300 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo1300(String po1300) {
        this.po1300 = po1300;
    }

    
    /**  
     * @Title:  getPo1301 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo1301() {
        return po1301;
    }

    
    /**  
     * @Title:  setPo1301 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo1301(String po1301) {
        this.po1301 = po1301;
    }

    
    /**  
     * @Title:  getPo1400 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo1400() {
        return po1400;
    }

    
    /**  
     * @Title:  setPo1400 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo1400(String po1400) {
        this.po1400 = po1400;
    }

    
    /**  
     * @Title:  getPo1500 <BR>  
     * @Description: please write your description <BR>  
     * @return: Date <BR>  
     */
    public Date getPo1500() {
        return po1500;
    }

    
    /**  
     * @Title:  setPo1500 <BR>  
     * @Description: please write your description <BR>  
     * @return: Date <BR>  
     */
    public void setPo1500(Date po1500) {
        this.po1500 = po1500;
    }

    
    /**  
     * @Title:  getPo1501 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo1501() {
        return po1501;
    }

    
    /**  
     * @Title:  setPo1501 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo1501(String po1501) {
        this.po1501 = po1501;
    }

    
    /**  
     * @Title:  getPo0201 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public String getPo0201() {
        return po0201;
    }

    
    /**  
     * @Title:  setPo0201 <BR>  
     * @Description: please write your description <BR>  
     * @return: String <BR>  
     */
    public void setPo0201(String po0201) {
        this.po0201 = po0201;
    }

    
    /**  
     * @Title:  setId <BR>  
     * @Description: please write your description <BR>  
     * @return: Integer <BR>  
     */
    public void setId(String id) {
        this.id = id;
    }

    @Override
	public Serializable getId() {
		return id;
	}

	@Override
	public String[] businessKeys() {
		return null;
	}
	
	public MrOperation copy() throws IOException, ClassNotFoundException {
		ByteArrayOutputStream bos = new ByteArrayOutputStream();
		ObjectOutputStream oos = new ObjectOutputStream(bos);
		oos.writeObject(this);
		ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(bos.toByteArray()));
		return (MrOperation) ois.readObject();
	}

}
